package com.zxy.dao;

import com.zxy.model.OrderingProduct;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface StockDao {

    @Update("update inventory set qty = qty-#{qty} where productId=#{productId}")
    int deduct(Integer productId,Integer qty);
}
